<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="/WEB-INF/tags/functions.tld" %>

<ul id="navBar">
	<c:if test="${f:isUserInRole('ROLE_ADMIN')}">
		<li><a href="/admin/account.html">Quản lý tài khoản</a></li>
		<li><a href="/admin/account.html">Danh sách học phần</a></li>
	</c:if>
	<c:if test="${f:checkAuthentication() != null}">
		<li style="float: right; margin-right: 20px; margin-top: 2px">
			<a href="j_spring_security_logout ">Đăng xuất</a>
		</li>
		<li style="float: right; margin-top: 5px">
			<span><b>Xin chào:</b> ${f:checkAuthentication().username} | </span>
		</li>
	</c:if>
</ul>